package com.example.admin.bean;

import com.example.admin.base.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class AccraditationRecord extends BaseEntity {
    @Builder
    public AccraditationRecord(String opinion, Integer type, Long approverId, String approverName, String approverNameRole, Long nextApproverId, String nextApprover, String nextApproverRole, String bussniessId, String currentStep, String nextStep, Integer auditStatus, Integer stepNo, Integer handleType)
    {
        this.opinion = opinion;
        this.type = type;
        this.approverId = approverId;
        this.approverName = approverName;
        this.approverNameRole = approverNameRole;
        this.nextApproverId = nextApproverId;
        this.nextApprover = nextApprover;
        this.nextApproverRole = nextApproverRole;
        this.bussniessId = bussniessId;
        this.currentStep = currentStep;
        this.nextStep = nextStep;
        this.auditStatus = auditStatus;
        this.stepNo = stepNo;
        this.handleType = handleType;
    }

    private String opinion;                      //审批意见
    private Integer type;                       //审批类型(1:退住,2:请假,3:入住)
    private Long approverId;                  //审批人id
    private String approverName;                //审批人名称
    private String approverNameRole;            //审批人角色
    private Long nextApproverId;             //下一审批人id
    private String nextApprover;                //下一审批人名称
    private String nextApproverRole;            //下一审批人角色
    private String bussniessId;                //业务id
    private String currentStep;                 //当前步骤
    private String nextStep;                    //下一步骤
    private Integer auditStatus;                //审核状态(1:通过,2:拒绝,3:驳回,4:撤回,5:撤销)
    private Integer stepNo;                     //步骤编号(1:新增,2:修改,3:删除)
    private Integer handleType;                 //处理类型（0:已审批，1：已处理）

}
